package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"wangwang/api/internal/config"
	"wangwang/wangwangrpc/wangwangrpcclient"
)

type ServiceContext struct {
	Config      config.Config
	WangWangRpc wangwangrpcclient.Wangwangrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:      c,
		WangWangRpc: wangwangrpcclient.NewWangwangrpc(zrpc.MustNewClient(c.WangWangRpc)),
	}
}
